package com.company;

public abstract class Train extends LandTransport {
    public Train() {
    }

    public Train(String id) {
        super(id);
    }
    @Override
    public void drivingMethod() {
        System.out.println("run");
    }

    @Override
    public void load() {
        System.out.println("run and take");
    }

    @Override
    public void maintain() {
        System.out.println("换零件");
    }

    @Override
    public void addGas() {
        System.out.println("加油");
    }
}
